print("_____________lua调用C#的枚举_____________")
U=CS.UnityEngine
--系统自带的 PrimitiveType
PrimitiveType=U.PrimitiveType

local obj=U.GameObject.CreatePrimitive(PrimitiveType.Cube)

myEnum=CS.MyEnum
local a=myEnum.Idle
print(a)

local b=myEnum.__CastFrom(1)
print(b)
local c=myEnum.__CastFrom("Attack")
print(c)
